﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace DukeNUS.FacilitiesPlanning.FPSystem.Models
{
    public class CardReader
    {

        public CardReader()
        {
            Description = "";
            CardReaderNo = "";
            NeedsApproval = false;
            IsActive = false;
        }

        [Key]
        public int CardReaderID { get; set; }

        [Required, MaxLength(150)]
        public string Description { get; set; }

        [Required, MaxLength(30)]
        public string CardReaderNo { get; set; }

        [ForeignKey("CardReaderType")]
        public int CRTID { get; set; }

        public virtual CardReaderType CardReaderType { get; set; }

        [ForeignKey("CardReaderGroup")]
        public int CRGID { get; set; }

        public virtual CardReaderGroup CardReaderGroup { get; set; }

        public int CRRADID { get; set; }

        public bool NeedsApproval { get; set; }

        public bool IsActive { get; set; }
    
    }
}